package io.renren.modules.cgs.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.cgs.dao.CgsPolicePostDao;
import io.renren.modules.cgs.entity.CgsPolicePostEntity;
import io.renren.modules.cgs.service.CgsPolicePostService;



@Service("cgsPolicePostService")
public class CgsPolicePostServiceImpl implements CgsPolicePostService {
	@Autowired
	private CgsPolicePostDao cgsPolicePostDao;
	
	@Override
	public CgsPolicePostEntity queryObject(String id){
		return cgsPolicePostDao.queryObject(id);
	}
	
	@Override
	public List<CgsPolicePostEntity> queryList(Map<String, Object> map){
		return cgsPolicePostDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cgsPolicePostDao.queryTotal(map);
	}
	
	@Override
	public void save(CgsPolicePostEntity cgsPolicePost){
		cgsPolicePostDao.save(cgsPolicePost);
	}
	
	@Override
	public void update(CgsPolicePostEntity cgsPolicePost){
		cgsPolicePostDao.update(cgsPolicePost);
	}

	@Override
	public void updatePolicePostInfo(CgsPolicePostEntity cgsPolicePost) {
		cgsPolicePostDao.updatePolicePostInfo(cgsPolicePost);
	}

	@Override
	public void delete(String id){
		cgsPolicePostDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		cgsPolicePostDao.deleteBatch(ids);
	}
	
}
